<h2 class="widget-title ribbon"><span>Latest Review</span></h2>

	<div class="carousel-inner">
	<?php 
$feed = file_get_contents("http://www.cnet.com/rss/reviews/");
$xml = new SimpleXmlElement($feed);
$count=0;
foreach ($xml->channel->item as $entry){
	?>		
		<div class="item <?php if($count==0) echo "active"; ?>">

			<article class="entry style-grid style-review type-post">

				<header class="entry-header">
					<h3 class="entry-title"><a href="<?php echo $entry->link; ?>" target="_blank"><?php echo $entry->title; ?></a> </h3>
					<p class="small"><?php echo $entry->pubDate; ?></p>
				</header>
							
				<figure class="entry-thumbnail">

					<a href="<?php echo $entry->link; ?>" class="overlay overlay-primary" target="_blank"></a>
					<?php 
					//Use that namespace
				  $media = $entry->children("http://search.yahoo.com/mrss/");
				  $img = $media->thumbnail->attributes()->url;
					?>
					<!-- to disable lazy loading, remove data-src and data-src-retina -->
					<img src="<?php echo $img; ?>" width="480" height="280" alt="">

					<!--fallback for no javascript browsers-->
					<noscript>
						<img src="<?php echo $img; ?>" alt="">
					</noscript>

				</figure>

			</article>

		</div><!--/.item.active-->

		<?php 
$count++;
  if($count==10){
  	break;
  }
	} 

	?>


	</div><!--/.carousel-inner-->

	<a class="left carousel-control" href="#reviewCarousel" data-slide="prev">
		<span class="fa fa-angle-left"></span>
	</a>
	<a class="right carousel-control" href="#reviewCarousel" data-slide="next">
		<span class="fa fa-angle-right"></span>
	</a>